package com.zm.mybatis.damai.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("dm_category")
public class Category {
    //auto 表示主键值 自增
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String cname;
    private Integer pid;
}
